package top.java.oop.rewrite;

public class Person {

    private String name;

    private int age;

    public Person() {

    }

    public Person(String name,int age) {
        this.age = age;
        this.name = name;
    }

    public void eat() {
        System.out.println("吃");
        sleep();
    }

    public void sleep() {
        System.out.println("睡");
    }

}


